<div id="colleft"> 
    <?php if (!empty($menuService)) { ?>
        <div class="module-colleft module-categories clearfix">
            <div class="colleft-title categories-title">
                <span>Dịch vụ</span>
            </div>
            <div class="colleft-content">
                <ul id="sample-menu-3" class="sf-menu sf-vertical sf-js-enabled sf-arrows">
                    <?php
                    foreach ($menuService as $ms) {
                        if (!empty($mcat)) {
                            if ($mcat->id == $ms->id) {
                                $block = 'style="display:block"';
                            } else {
                                $block = '';
                            }
                        } else {
                            $block = '';
                        }
                        ?>
                        <li class="current">
                            <img src="<?php echo $ms->image; ?>" alt="<?php echo $ms->alt; ?>" title="<?php echo $ms->title; ?>"/>
                            <a href="<?php echo base_url() . $dataAlias[$ms->id]->alias . '.html'; ?>" title="<?php echo $ms->title; ?>" class="sf-with-ul"><?php echo $ms->title; ?></a>
                            <?php if (!empty($arrayNoteChild)) { ?>
                                <ul <?php echo $block; ?> >
                                    <?php foreach ($arrayNoteChild as $arrNote) { ?>
                                        <li>
                                            <a href="<?php echo base_url() . $dataAlias[$arrNote->id]->alias . '.html'; ?>" title="<?php echo $arrNote->title; ?>"><?php echo $arrNote->title; ?></a>
                                        </li>
                                    <?php } ?>
                                </ul>
                            <?php } elseif (!empty($selectNewsService[$ms->id])) {
                                ?>
                                <ul <?php echo $block; ?> >
                                    <?php
                                    foreach ($selectNewsService[$ms->id] as $arrNews) {
                                        if (!empty($getOneServiceNew)) {
                                            if ($getOneServiceNew->id == $arrNews->id) {
                                                $classh = 'class="hovera"';
                                            } else {
                                                $classh = '';
                                            }
                                        } else {
                                            $classh = '';
                                        }
                                        ?>
                                        <li >
                                            <a <?php echo $classh; ?>  href="<?php echo base_url() . $dataAliastt[$arrNews->id]->alias . '.html'; ?>" title="<?php echo $arrNews->title; ?>"><?php echo $arrNews->title; ?></a>
                                        </li>
                                    <?php } ?>
                                </ul>
                            <?php } ?>
                        </li>
                    <?php } ?>
                </ul>
            </div>
            <script>
                jQuery(document).ready(function() {
                    jQuery('.sf-menu').superfish({
                        animation: {height: 'show'}, // slide-down effect without fade-in
                        delay: 1200			// 1.2 second delay on mouseout
                    });
                });

            </script>
        </div>
    <?php } if (!empty($selectDesign)) { ?>
        <div class="module-colleft module-categories clearfix">
            <div class="colleft-title categories-title">
                <span>Danh mục website</span>
            </div>
            <div class="colleft-content  colleft-category">
                <ul>
                    <?php
                    foreach ($selectDesign as $sd) {
                        echo '<li><a title="' . $sd->title_seo . '" href="' . base_url() . $dataAlias[$sd->id]->alias . '.html">' . $sd->title . '</a></li>';
                    }
                    ?>
                </ul>
            </div>
        </div>
    <?php } ?>
    <?php if (!empty($selectNewsHot)) { ?>
        <div class="module-colleft module-news-hit clearfix">
            <div class="colleft-title news-hit-title">
                <span>Tin nổi bật</span>
            </div>
            <div class="colleft-content  colleft-news-hit">
                <ul>
                    <?php foreach ($selectNewsHot as $arrHot) { ?>
                        <li class="clearfix">
                            <!--a class="img-news-hit" title="<-?php echo $arrHot->title; ?>" href="<-?php echo base_url() . $dataAliastt[$arrHot->id]->alias . '.html'; ?>"><img alt="<-?php echo $arrHot->alt; ?>" src="<-?php echo $arrHot->image; ?>"/></a-->
                            <a class="link-news-hit" title="<?php echo $arrHot->title; ?>" href="<?php echo base_url() . $dataAliastt[$arrHot->id]->alias . '.html'; ?>"><?php echo $arrHot->title; ?></a>
                        </li>
                    <?php } ?>
                </ul>
            </div>
        </div>
    <?php } ?>
    <div class="module-colleft module-news-hit clearfix">
        <div class="colleft-title news-hit-title">
            <span>Facebook</span>
        </div>
        <div class="colleft-content  colleft-news-hit">
            <iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fvicoweb.vn&amp;width=245&amp;height=290&amp;colorscheme=light&amp;show_faces=true&amp;header=true&amp;stream=false&amp;show_border=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:245px; height:290px;" allowTransparency="true"></iframe>
        </div>
    </div>
    <?php if (!empty($selectAds)) { ?>
        <div class="module-colleft module-ads clearfix">
            <a href="<?php echo $selectAds->url; ?>" title="" ><img src="<?php echo $selectAds->image; ?>" alt="<?php echo $selectAds->alt; ?>"/></a>
        </div>
    <?php } ?>
</div>